<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	<a4j:outputPanel id="jornadaTrabalhoListPanel">
		<h:form>
			<rich:dataTable
				value="#{jornadaTrabalhoAction.resultList}"
				var="_jornadaTrabalho"
				rows="10"
				id="jornadaTrabalhoTableID"
				rendered="#{!empty jornadaTrabalhoAction.resultList}">
				<rich:column>
					<f:facet name="header">#{messages['label.identificador']}</f:facet>
					<h:outputText value="#{_jornadaTrabalho.id}"/>
				</rich:column>
				<rich:column>
					<f:facet name="header">#{messages['label.descricao']}</f:facet>
					<h:outputText 
						value="#{_jornadaTrabalho.descricao}"/> 
				</rich:column>
				<rich:column>
					<f:facet name="header">#{messages['label.horas.trabalho']}</f:facet>
					<h:outputText 
						value="#{_jornadaTrabalho.horasTrabalho}"/> 
				</rich:column>
				<rich:column>
					<f:facet name="header">#{messages['label.horas.descanso']}</f:facet>
					<h:outputText 
						value="#{_jornadaTrabalho.horasDescanso}"/> 
				</rich:column>
				<rich:column>
					<f:facet name="header">#{messages['label.editar']}</f:facet>
					<center>
						<a4j:commandLink 
							value="#{messages['label.editar']}" 
							action="#{jornadaTrabalhoAction.setEntity(_jornadaTrabalho)}"/>
					</center>
				</rich:column>
			</rich:dataTable>
		</h:form>
	</a4j:outputPanel>
</ui:fragment>
